package com.example.zjsr.service;


import com.example.zjsr.domain.Admin.platform.Platform;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @author lvyongwei
 */
public interface PlatformService {

    /**
     * 添加平台信息
     * @param platform
     * @param files
     * @return
     */
    public boolean insertPlatform(Platform platform, MultipartFile[] files);

    /**
     * 修改平台信息
     * @param platform
     * @param file1
     * @param file2
     * @return
     */
    public boolean updatePlatform(Platform platform, MultipartFile file1,MultipartFile file2);

    /**
     * 获取所有平台信息
     * @return
     */
    public List<Platform> getPlatforms();

    /**
     * 修改每个平台的详细内容
     * @param platforms
     * @return
     */
    public void updatePlatformDetail(List<Platform> platforms);
}
